package com.ctgu.module.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.module.admin.model.Email;
import com.ctgu.module.admin.model.User;

import java.util.List;

public interface EmailService extends IService<Email> {

    /**
     * 根据接收的邮箱查找改邮箱收到的所有邮件
     *
     * @param address
     * @return List<Email>
     */
    List<Email> selectAllEmailsByAddress(String address);

    Integer getEmailsNumberByUserID(Integer userID);
}
